{template "content","header_page"}
	<?php 
	$where = ' 1 = 1';
	if($_GET['label']) {$label = $_GET['label'];$where .= " and label= " . $label;}
	if($_GET['city']) {$city = $_GET['city'];$where .= " and city= " . $city;}
	if($_GET['people']) {$people = $_GET['people'];$where .= " and people= " . $people;}
	if($_GET['letter']) {$letters = $_GET['letter'];$where .= " and letter= '$letters'";}
	if($_GET['title']) {$title = $_GET['title'];$where .= " and title like '%$title%'";}
	?>
<div class="bgbody" style="background: url(http://m.nsr.com.cn/resource/uploadfile/column_icon/19.jpg) no-repeat top center;">
	<div class="main">
		<div class="rightbox">
			<div class="tipsearch">
				<div class="topnav">
					<ul>
						<li><a href="index.php?m=content&c=index&a=lists&catid={$catid}" {if !$label} class="onin" {/if}>模特介绍</a><span>|</span></li>
						<li><a href="index.php?m=content&c=index&a=lists&catid={$catid}&label=1" {if $label == 1} class="onin" {/if}>超级女模</a><span>|</span></li>
						<li><a href="index.php?m=content&c=index&a=lists&catid={$catid}&label=2" {if $label == 2} class="onin" {/if}>超级男模</a><span>|</span></li>
						<li><a href="index.php?m=content&c=index&a=lists&catid={$catid}&label=3" {if $label == 3} class="onin" {/if}>少儿模特</a></li>
					</ul>
				</div>
				<div class="searchSx">
					<div id="city" data="{$city}">
						<span class="qianTitle">城市：</span>
						<span value="" {if !$city} class="spans allTj"{else} class="spans"{/if}>ALL</span>
						<span value="13" {if $city == 13} class="spans allTj"{else} class="spans"{/if}>北京</span>
						<span value="14" {if $city == 14} class="spans allTj"{else} class="spans"{/if}>广州</span>
						<span value="15" {if $city == 15} class="spans allTj"{else} class="spans"{/if}>上海</span>
						<span value="16" {if $city == 16} class="spans allTj"{else} class="spans"{/if}>成都</span>
						<span value="17" {if $city == 17} class="spans allTj"{else} class="spans"{/if}>虎门</span>
					</div>
					<div id="people" data="{$people}">
						<span class="qianTitle">人种：</span>
						<span value=""{if !$people} class="spans allTj"{else} class="spans"{/if}>ALL</span>
						<span value="1" {if $people == 1} class="spans allTj"{else} class="spans"{/if}>中模</span>
						<span value="2" {if $people == 2} class="spans allTj"{else} class="spans"{/if}>外模</span>
					</div>
					<div class="zmpl" id="letter" data="{$letters}">
						<span class="qianTitle">字母表：</span>
						<span value="" {if !$letters} class="spans allTj"{else} class="spans"{/if}>ALL</span>
						{pc:content action="getOne" catid="$catid" column="letter" distinct="1" pagesizes="26"}
						{loop $data $v}  
						<span value="{$v}" {if $letters == $v} class="spans allTj"{else} class="spans"{/if}>{$v}</span>     
						{/loop}
						{/pc}  
					</div>
					<div>
						<span class="qianTitle">搜索：</span>
						<div class="searchB">
							<input type="text" value="{$title}" class="Wk" placeholder="请输入模特名字" name="title" id="title">
							<input type="submit" value="" class="s_btn" name="" id="click_submit">
						</div>
					</div>
				</div>
			</div>

			<div class="mote">
				{pc:content  action="lists" catid="$catid" where="$where" order="listorder DESC,updatetime DESC" page="$page" num="12" moreinfo="1"}  	  
				<ul class="sis-li">
					{loop $data $key $val}
					<li>
						<span class="v1">
							<a href="{$val[url]}" style="overflow:hidden;">
								<img src="{$val[thumb]}" width="100%" height="77%">
								<p>{$val['title']}</p>
							</a>
							<span class="div"></span>
						</span>
					</li>
					{/loop}
					
					<div class="clear"></div>
				</ul>
				<script type="text/javascript">
					$(document).ready(function(){
						$("span.div").show();
						$(".sis-li li").hover(function(){
						$("span.div",this).slideToggle(100);


						});
						//点击事件
						$('#city .spans').click(function(){
							var citys = $(this).attr('value');
							var label = '{$label}';
							var url = "index.php?m=content&c=index&a=lists&catid={$catid}";
							if (label) {
								url += "&label="+label;
							}
							if (citys) {
								url += "&city="+citys;
							}
							window.location.href = url;
						})
						$('#people .spans').click(function(){
							var peoples = $(this).attr('value');
							var label = '{$label}';
							var url = "index.php?m=content&c=index&a=lists&catid={$catid}";
							if (label) {
								url += "&label="+label;
							}
							if (peoples) {
								url += "&people="+peoples;
							}
							window.location.href = url;
						})
						$('#letter .spans').click(function(){
							var letters = $(this).attr('value');
							var label = '{$label}';
							var url = "index.php?m=content&c=index&a=lists&catid={$catid}";
							if (label) {
								url += "&label="+label;
							}
							if (letters) {
								url += "&letter="+letters;
							}
							window.location.href = url;
						})

						//点击提交
						$('#click_submit').click(function(){
							var url = "index.php?m=content&c=index&a=lists&catid={$catid}";
							var title = $('#title').val();
							var label = '{$label}';
							if (label) {
								url += "&label="+label;
							}
							if (title) {
								url += "&title="+title;
							}
							window.location.href = url;
						})
					});//图片遮罩
				</script>
				<div style="text-align: center;">
				<div class="Ppage">{$front_pages}</div>
				</div>
				{/pc} 
				<!-- <div class="Ppage">
					<a href="#" class="Uppage">上一页</a>
					<a href="#" class="on">1</a>
					<a href="#">2</a>
					<a href="#">3</a>
					<a href="#">4</a>
					<a href="#">5</a>
					<a href="#">6</a>
					<a href="#">7</a>
					<a href="#">8</a>
					<a href="#">9</a>
					<span>...</span>
					<a href="#">66</a>
					<a href="#" class="Downpage">下一页</a>
				</div> -->
			</div> 	
		</div>
	<div class="clear"></div>
	</div>
</div>
{template "content","footer"}
</body>